package d4_list;

import java.util.Comparator;
import java.util.Set;
import java.util.TreeSet;

public class ts {
    public static void main(String[] args) {
        Set<moive> set = new TreeSet<>(new Comparator<moive>() {

            @Override
            public int compare(moive o1, moive o2) {
                return Double.compare(o1.getScore()-o2.getScore(), 0);
            }
        });
        set.add(new moive("发放时",15,"政府的",64));
        set.add(new moive("发士大夫",15,"发放",516));
        set.add(new moive("发顺丰",541,"大苏打",51));
        set.add(new moive("范德萨",15,"打地基",64));
        System.out.println(set);
    }
}
